package alo.p3;
//链表的类型声明
public class ListNode {
    private int data;
    private ListNode next;

    public ListNode(Integer data) {
        this.data = data;
    }


    public int getData() {
        return data;
    }

    public void setData(int data) {
        this.data = data;
    }

    public ListNode getNext() {
        return next;
    }

    public void setNext(ListNode next) {
        this.next = next;
    }


}
